function template
<random>

std::operator<<

template <class charT, class traits, class UIntType,          UIntType a, UIntType c, UIntType m>  basic_ostream<charT,traits>& operator<< ( basic_ostream<charT,traits>& os,                       const linear_congruential_engine<UIntType,a,c,m>& lce );
Insert into output stream
Writes a textual representation of the object's current state, in such a way that if this same text is inserted using operator>> into an object of the same type, the same sequence of random numbers would be generated by equivalent invocations of operator().

If os's fmtflags is not set to dec|left and its fill character is not the space character, the behavior of this function is undefined.

Parameters

os
ostream object with its fmtflags set to dec|left and using the space character as fill character.
lce
A linear_congruential_engine object.


Return Value

The same as parameter os.

If some error happens during the output operation, the stream's badbit flag is set, and if the appropriate flag has been set with ios::exceptions, an exception is thrown.

Complexity

Constant.

See also